<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改通道订单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-channelOrder-edit" th:object="${channelOrder}">
            <input id="orderId" name="orderId" th:field="*{orderId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">平台订单号：</label>
				<div class="col-sm-8">
					<input id="ptOrderno" name="ptOrderno" th:field="*{ptOrderno}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">下游订单号：</label>
				<div class="col-sm-8">
					<input id="childOrderno" name="childOrderno" th:field="*{childOrderno}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户编号：</label>
				<div class="col-sm-8">
					<input id="businessId" name="businessId" th:field="*{businessId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易金额：</label>
				<div class="col-sm-8">
					<input id="amount" name="amount" th:field="*{amount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">交易金额：</label>
				<div class="col-sm-8">
					<input id="payAmount" name="payAmount" th:field="*{payAmount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">提交日期：</label>
				<div class="col-sm-8">
                    <input id="submitTime" name="submitTime" th:value="*{#dates.format(submitTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
                </div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">成功日期：</label>
				<div class="col-sm-8">
                    <input id="successTime" name="successTime" th:value="*{#dates.format(successTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
                </div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易通道：</label>
				<div class="col-sm-8">
					<input id="jytd" name="jytd" th:field="*{jytd}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易银行：</label>
				<div class="col-sm-8">
					<input id="jyyh" name="jyyh" th:field="*{jyyh}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易账号：</label>
				<div class="col-sm-8">
					<input id="account" name="account" th:field="*{account}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">提交地址：</label>
				<div class="col-sm-8">
					<input id="submitUrl" name="submitUrl" th:field="*{submitUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">页面返回地址：</label>
				<div class="col-sm-8">
					<input id="returnUrl" name="returnUrl" th:field="*{returnUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">服务器通知地址：</label>
				<div class="col-sm-8">
					<input id="serverUrl" name="serverUrl" th:field="*{serverUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<select id="orderStatus" name="orderStatus" th:field="*{orderStatus}" class="form-control" th:with="type=${@dict.getType('sys_order_status')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
	                </select>
	             </div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">数据状态：</label>
				<div class="col-sm-8">
					<div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
						<input type="radio" th:id="${dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}">
						<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
					</div>
			    </div>
			</div>
			
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/channelOrder";
		$("#form-channelOrder-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-channelOrder-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
